﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using MOJsdk;

namespace MOJ
{
    /// <summary>
    /// Interaction logic for Control_MainSettings.xaml
    /// </summary>
    public partial class Control_MainSettings : UserControl
    {
        public Control_MainSettings()
        {
            InitializeComponent();
            INI();
        }

        #region Inicialization
        private void INI()
        {
            LoadElements();
            IniStyles();
        }

        private void LoadElements()
        {
            foreach (var item in MojHost.GetHost.GetSettingsTabItems())
            {
                TabItem tab = new TabItem();
                tab.Header = item.Title;
                tab.Content = item.Item;
                _tab.Items.Add(tab);
            }
        }
        private void IniStyles()
        {
            _tab.ApplyStyle("0101059");
            _Grid.ApplyStyle("0101060");
        }
        #endregion
    }
}
